//
//  BuyGoosViewController.m
//  Lianxi2
//
//  Created by lanou on 16/7/4.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "BuyGoosViewController.h"

@interface BuyGoosViewController ()<UIWebViewDelegate>
@property (nonatomic,strong)UIWebView *web;
@end

@implementation BuyGoosViewController
- (UIWebView *)web{
    if (!_web) {
        _web = [[UIWebView alloc]initWithFrame:CGRectMake(0, 64, kWidth, kHeight-64)];
        _web.delegate = self;
        _web.scrollView.bounces = NO;
        _web.scrollView.bouncesZoom = NO;
        
    }
    return _web;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.automaticallyAdjustsScrollViewInsets = NO;
    [self.view addSubview:self.web];
    
    [self.web loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.url]]];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
